from C_Header_Parse import C_FILE_Struct_Prase
from xml_Parse import XML_Gen_DataType
from C_Header_Parse.Struct_Class_Define import headfile,struct,array,member,define

import os,sys,re

# user config block
Header_File_Name = 'camera_comm.h'
RTE_FileName = 'VehInfo'



# 执行脚本
current_path = os.path.abspath(os.path.dirname(sys.argv[0]))
HeadFile_Path = current_path + './' + Header_File_Name

# 解析C头文件
HeadFile = C_FILE_Struct_Prase.Header_FileParse(HeadFile_Path)

# 执行生成xml
XML_Gen_DataType.Gen_XML_Base_Header(RTE_FileName,HeadFile)

print('jiayou!')